<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head></h:head>


<body>

<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
		template="./../WEB-INF/Facelets/mainTemplate.xhtml">

		<ui:define name="content">
		
		<div id="content">
			<h:form id="form">

				<p:panel header="Pessoa Júridica" style="font-size:25px;">


					<h:panelGrid id="gridFormCli" columns="4" cellpadding="5"
						style="margin-bottom:5px; font-size:12px; font-weight:bold;">

						<h:outputLabel value="Nome* " />
						<p:inputText size="25" maxlength="60"
							value="#{personBean.firstname}" />

						<h:outputLabel value="Endereço " />
						<p:inputText size="25" maxlength="80" value="#{personBean.end}" />

						<h:outputLabel value="Bairro " />
						<p:inputText size="25" maxlength="60"
							value="#{personBean.firstname}" />

						<h:outputLabel value="Cidade " />
						<p:inputText size="25" maxlength="60"
							value="#{personBean.firstname}" />

						<h:outputLabel value="Cep " />
						<p:inputMask size="7" maxlength="9" value="#{maskController.rg}"
							mask="99999-999" />
							
						<h:outputText value="Estado " />
						<p:selectOneMenu value="#{buttonBean.number}">
							<f:selectItem itemLabel="Selecione" itemValue="" />
							<f:selectItem itemLabel="AC" itemValue="1" />
							<f:selectItem itemLabel="AL" itemValue="2" />
							<f:selectItem itemLabel="AP" itemValue="3" />
							<f:selectItem itemLabel="AM" itemValue="4" />
							<f:selectItem itemLabel="BA" itemValue="5" />
							<f:selectItem itemLabel="CE" itemValue="6" />
							<f:selectItem itemLabel="DF" itemValue="7" />
							<f:selectItem itemLabel="ES" itemValue="8" />
							<f:selectItem itemLabel="GO" itemValue="9" />
							<f:selectItem itemLabel="MA" itemValue="10" />
							<f:selectItem itemLabel="MG" itemValue="11" />
							<f:selectItem itemLabel="MT" itemValue="12" />
							<f:selectItem itemLabel="MS" itemValue="13" />
							<f:selectItem itemLabel="PA" itemValue="14" />
							<f:selectItem itemLabel="PB" itemValue="15" />
							<f:selectItem itemLabel="PR" itemValue="16" />
							<f:selectItem itemLabel="PE" itemValue="17" />
							<f:selectItem itemLabel="PI" itemValue="18" />
							<f:selectItem itemLabel="RJ" itemValue="19" />
							<f:selectItem itemLabel="RN" itemValue="20" />
							<f:selectItem itemLabel="RS" itemValue="21" />
							<f:selectItem itemLabel="RO" itemValue="22" />
							<f:selectItem itemLabel="RR" itemValue="23" />
							<f:selectItem itemLabel="SC" itemValue="24" />
							<f:selectItem itemLabel="SP" itemValue="25" />
							<f:selectItem itemLabel="SE" itemValue="26" />
							<f:selectItem itemLabel="TO" itemValue="27" />
						</p:selectOneMenu>

						<h:outputLabel value="CNPJ*: " />
						<p:inputMask size="15" value="#{maskController.cnpj}"
							mask="99.999.999/9999-99" />

						<h:outputLabel value="inscrição estadual " />
						<p:inputText size="19" maxlength="20" value="#{maskController.rg}" />

						<h:outputLabel value="inscrição municipal " />
						<p:inputText size="19" maxlength="20" value="#{maskController.rg}" />

						<h:outputLabel value="Endereço nota fiscal " />
						<p:inputText size="25" maxlength="80" value="#{personBean.end}" />

						<h:outputLabel value="Cep envio nota fiscal " />
						<p:inputMask size="7" maxlength="11" value="#{maskController.rg}"
							mask="99999-999" />

						<h:outputText value="Telefone 1* " />
						<p:inputMask size="11" value="#{maskController.phone}"
							mask="(99) 9999-9999" />

						<h:outputText value="Telefone 2 " />
						<p:inputMask size="11" value="#{maskController.phone}"
							mask="(99) 9999-9999" />

						<h:outputText value="Telefone 3 " />
						<p:inputMask size="11" value="#{maskController.phone}"
							mask="(99) 9999-9999" />

						<h:outputText value="Celular " />
						<p:inputMask size="12" value="#{maskController.celular}"
							mask="(99) 99999-9999" />
							
						<h:outputText value="Caixa postal " />
						<p:inputMask size="19" maxlength="20"
							value="#{maskController.phone}" />
							
						<h:outputText value="E-mail do cliente " />
						<p:inputText size="25" maxlength="60"
							value="#{personBean.firstname}" />
							

						<h:outputText value="Nome do gestor " />
						<p:inputText size="25" maxlength="60"
							value="#{personBean.firstname}" />

						<h:outputText value="Telefone do gestor " />
						<p:inputMask size="12" value="#{maskController.phone}"
							mask="(99) 9999-9999" />

						<h:outputText value="E-mail do gestor " />
						<p:inputText size="25" maxlength="60"
							value="#{personBean.firstname}" />


						<h:outputLabel value="Data " />
							<h:panelGrid>
								<p:calendar size="6" value="#{calendarBean.date2}" id="popupCal" /> 
								<h:outputText value="#{calendarBean.date2}" id="popupDate">  
                					<f:convertDateTime pattern="d/M/yyyy"/>  
            					</h:outputText> 
            				</h:panelGrid>

						<h:outputLabel value="Referência Comercial 1 " />
						<p:inputTextarea maxlength="60"
							value="#{personBean.refComercial}" />

						<h:outputLabel value="Referência Comercial 2 " />
						<p:inputTextarea maxlength="60"
							value="#{personBean.refComercial}" />

						<h:outputLabel value="Observações: " />
						<p:inputTextarea maxlength="500"
							value="#{personBean.refComercial}" />

					</h:panelGrid>
					<!-- fim da grid griFormCli -->

					<h:panelGrid id="gridBotoesCli" columns="2" cellpadding="3"
						style="margin-bottom:5px; font-size:12px; font-weight:bold;">
						<p:commandButton value="Limpar" type="reset" />
						<p:commandButton value="Cadastrar" type="submit" />
					</h:panelGrid>
					<!-- fim da grid gridBotoesCli -->

				</p:panel>
				<!-- fim do panel Cadastro de Clientes -->


			</h:form>
			<!-- fim do formulario -->

		</div>
		<!-- fim da div content -->
		

		</ui:define>



	</ui:composition>

</body>
</html>
